import request from '../utils/request'
import { CATEGORY_API, SUB_CATEGORY_API,HOME_API } from '../constant/api'

export const getCategoryData = () => request({
  url: CATEGORY_API,
})

export const getSubCategoryData = (id) => request({
  url: SUB_CATEGORY_API.replace('{id}',id),
})